package com.sihan.framework.etm.mapper;

import com.framework.mybatis.mapper.BaseMapper;
import com.sihan.framework.etm.entity.UserRole;
import com.sihan.framework.etm.vo.RoleVO;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole, String> {

  void insertUserRole(@Param("userId") String userId, @Param("roleIds") List<String> roleIds,
      @Param("createTime") Date createTime, @Param("createUser") String createUser);

  List<RoleVO> selectRolesByUserId(@Param("userId") String userId);

  Set<String> selectRoleIdsByUserId(@Param("userId") String userId);
}